<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>人员信息 - Supabase</title>
    <link rel="stylesheet" href="../css/common.css">
    <link rel="stylesheet" href="../css/data-management.css">
    <link rel="stylesheet" href="userProfiles.css">
</head>
<body>
<div class="container">
    <div class="card">
        <div class="header">
            <h1>人员信息</h1>
            <p>完善个人信息</p>
        </div>

        <!-- 用户信息显示 -->
        <div id="user-info" class="user-info">
            <div class="user-header">
                <div class="avatar" id="user-avatar">U</div>
                <div class="user-details">
                    <h2 id="user-display-name">用户</h2>
                    <p id="user-email">user@example.com</p>
                </div>
                <div class="user-actions">
                    <button id="logout-btn" class="btn logout-btn">退出登录</button>
                </div>
            </div>
        </div>

        <!-- 添加表单 -->
        <div class="form-container">
            <form id="add-form">
                <div class="form-group">
                    <label for="username">姓名</label>
                    <input type="text" id="username" placeholder="请输入姓名" maxlength="18">
                </div>
                <div class="form-group">
                    <input id="user-id" placeholder="id" maxlength="18" class="hidden">
                    <label for="id-card-number">身份证号码</label>
                    <input type="text" id="id-card-number" placeholder="请输入身份证号码" maxlength="18">
                </div>
                <div class="form-group">
                    <label for="health-code">健康代码</label>
                    <input type="text" id="health-code" placeholder="请输入健康代码" maxlength="18">
                </div>

                <div class="form-actions">
                    <button type="submit" id="save-btn" class="btn btn-primary">保存信息</button>
                </div>
            </form>
        </div>

        <!-- 消息提示 -->
        <div id="message" class="message"></div>
    </div>
</div>

<script src="../supabase-js/supabase.js"></script>
<script src="../js/supabase-config.js"></script>
<script src="../js/common.js"></script>
<script src="userProfiles.js"></script>
</body>
</html>